FROM php:7.4-fpm

#pdo_mysql
RUN docker-php-ext-install pdo_mysql \
#Redis
&& curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/5.3.6.tar.gz \
&& tar xfz /tmp/redis.tar.gz \
&& rm -r /tmp/redis.tar.gz \
&& mkdir -p /usr/src/php/ext \
&& mv phpredis-5.3.6 /usr/src/php/ext/redis \
&& docker-php-ext-install redis \
&& docker-php-ext-install zip \
#xdebug
&& pecl install xdebug-2.8.1 \
&& docker-php-ext-enable xdebug \
# Swoole
&& pecl install swoole-4.5.2 \
&& docker-php-ext-enable swoole \
# AMQP
&& apt-get update \
&& apt-get install -y librabbitmq-dev libssl-dev \
&& pecl install amqp \
&& docker-php-ext-enable amqp \
# Seaslog
&& pecl install seaslog \
&& docker-php-ext-enable seaslog \